home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / temgen.lha / Temgen / Amigamain / Example2 / amigamain.h < prev    next >
C/C++ Source or Header  |  2004-06-26  |  776b  |  36 lines

  1. #ifndef AMIGAMAIN_H
  2. #define AMIGAMAIN_H
  3.  
  4. #include <exec/types.h>
  5. #include <intuition/intuition.h>
  6.  
  7. #include <stdarg.h>
  8.  
  9. struct Config
  10. {
  11.     /* true if libraries have successful been opened */
  12.     BOOL all_libraries_open;
  13.  
  14.     /* true if application was started from Workbench */
  15.     BOOL start_from_wb;
  16.  
  17.     /* reference window for EasyRequest */
  18.     struct Window *reqwin;
  19.  
  20.     BOOL message_request;
  21.     BOOL message_output;
  22.     BOOL jingle;
  23.     STRPTR pubscreen;
  24.     LONG nr;
  25. };
  26.  
  27. extern struct Config config;
  28.  
  29. LONG show_request( char *title, char *text, char *button, ... );
  30. LONG show_request_args( char *title, char *text, char *button, va_list ap );
  31. void vmessagef(char *format, va_list ap);
  32. void messagef(char *format, ... );
  33. char *strcpy_malloc(const char *s );
  34.  
  35. #endif
  36.